<template>
    <view>
        <view class="event-content">
            <view class="event-detail-item">
                <span>巡查时间：</span> <span>{{ detailData.swCheckTime }}</span>
            </view>
            <view class="event-detail-item">
                <span>巡查区域：</span> <span>{{ detailData.swLocation }}</span>
            </view>
            <view class="event-detail-item">
                <span>巡查情况：</span> <span>{{ detailData.swCheckSituation }}</span>
            </view>
            <view class="event-detail-item">
                <span>处理结果：</span> <span>{{ detailData.swCheckResult }}</span>
            </view>
			<view class="event-detail-item">
			    <span>巡查图片：</span>
				<span>
					<FileListDisplay :data="detailData.patrolImage"></FileListDisplay>
				</span>
			</view>
        </view>
     
    </view>
</template>

<script>
import * as PatrolLogApi from "@/api/patrolLog.js"
import FileListDisplay from "@/components/file-display/file-list-display"
export default {
	 components: { FileListDisplay },
    data() {
        return {
            detailData: {
                creator: '肖万亮 ',
                createTime: ' 2023-02-28  15:40:49',
                name: '小傻通知'
            },
            dateTime: ''
        };
    },
    methods: {
        
    },
    onLoad(options) {
        const { id } = options;
        PatrolLogApi.getPatrolLogDetail({ id}).then(res => {
            this.detailData = {
                ...res.data,
				 patrolImage: res.data.patrolImage.split(','),
            }
        })
    }
}
</script>

<style lang="scss">
page {
    background-color: #ffffff;
    padding: 16rpx 32rpx 34rpx;
    box-sizing: border-box;
}

.event-detail-top {
    width: 686rpx;
    height: 160rpx;
    background: #F6F6F6;
    border-radius: 4rpx;
    text-align: center;
    font-weight: 400;
    font-size: 24rpx;
    color: #999999;

    .event-title {
        font-size: 32rpx;
        color: #333333;
        font-weight: 500;
        margin-bottom: 16rpx;
        padding-top: 32rpx;
    }
}

.event-content {
    font-weight: 400;
    font-size: 28rpx;
    color: #666666;
    margin: 32rpx 0;
}

.event-detail-item {
    margin-bottom: 20rpx;
}

.line-title-right {
    text-align: right;
    height: 80rpx;
    line-height: 80rpx;
    float: right;
    color: #1E71FE;
    font-size: 24rpx;
}

.footer-black {
    height: 130rpx;
}
</style>
